package com.kunzai.threadrun2.numberone;

import java.util.concurrent.Callable;

public class TrainCall implements Callable<Integer> {
    /**
     * Computes a result, or throws an exception if unable to do so.
     *
     * @return computed result
     * @throws Exception if unable to compute a result
     */
    @Override
    public Integer call() throws Exception {
        int acount = 0;
        for (int i = 0; i < 1000; i++) {
           acount++;
        }


        return acount;
    }
}
